package com.mingben.betplatform.util;

import java.io.*;

public class FileUtils {
    public static String readAll(String path){
        try {
            BufferedReader br = new BufferedReader(new FileReader(new File(path)));
            String all = "";
            String temp = "";
            while( (temp = br.readLine() ) != null){
                all+=temp;
            }
            br.close();
            return all;
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return "";
    }
}
